package com.vains.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value="OauthToken 请求对象封装", description="权限载体")
public class OauthTokenReq implements Serializable {

    @ApiModelProperty(value = "认证类型", required = true, dataType = "String")
    private String grantType;

    @ApiModelProperty(value = "账号/用户名/手机号", required = true, dataType = "String")
    private String username;

    @ApiModelProperty(value = "密码", required = true, dataType = "String")
    private String password;

    @ApiModelProperty(value = "客户端ID", required = true, dataType = "String")
    private String clientId;

    @ApiModelProperty(value = "客户端 秘钥", required = true, dataType = "String")
    private String clientSecret;

    @ApiModelProperty(value = "refreshToken串, 非必须, 刷新token时必须", dataType = "String")
    private String refreshToken;

    @ApiModelProperty(value = "权限范围, 可不填", dataType = "String")
    private String scope;

    @ApiModelProperty(value = "授权码认证成功之后转到回调函数时携带的参数", dataType = "String")
    private String state;

}
